# -*- coding:utf-8 -*-
"""
Created on 10 Mar 2010

@author: iliask
"""
def roundToSignificantFigures(nums,sigdigits):
    try:
        if isinstance(nums, list):
            out= ['%.2f' % n for n in nums]
        else:
            out ='%.2f' % nums    
        return out
    except Exception:
        raise